:root {
  /* 基础 */
  --color-bg: #ffffff;
  --color-text: #213547;

  /* 主题色 */
  --color-primary: #D9C08D;
  --color-primary-hover: #D9C08D;
  --active-bg: #000;

  font-family: 'PingFang SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  /* 禁用浏览器默认样式 */
  font-synthesis: none;
  /* 优化文本渲染 */
  text-rendering: optimizeLegibility;
  /* 优化字体渲染 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 字体 */
@font-face {
  font-family: 'YouSheBiaoTiHei';
  src: url(/public/fonts/YouSheBiaoTiHei-2.ttf) format('truetype');

}

@font-face {
  font-family: 'PingFang-SC';
  src: url(/public/fonts/PingFang-SC.ttf) format('truetype');

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html,
body,
html,
body,
#root {
  width: 100%;
  min-height: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg: #ffffff;
    --color-text: #213547;

    color: var(--color-text);
    background-color: var(--color-bg);
  }
}

/* 主题控制：通过 data-theme 切换 */
[data-theme='light'] {
  --color-bg: #efefef;
  --color-text: #1a1a1a;
  --color-primary: #D9C08D;
  --color-primary-hover: #cdb67f;
  --active-bg: #000000;
}

[data-theme='dark'] {
  --color-bg: #0f0f0f;
  --color-text: #e5e5e5;
  --color-primary: #D9C08D;
  --color-primary-hover: #e6cf9c;
  --active-bg: #000000;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

@keyframes expandGlow {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}